import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:墨琦
 * Data:2023-09-24
 * Time:15:12
 */
class User{
    public String name;
    public String possword;
}

@WebServlet("/json")
public class JsonServlet extends HttpServlet {
/*    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        ObjectMapper objectMapper=new ObjectMapper();
        User user=objectMapper.readValue(req.getInputStream(),User.class);
        String userString = objectMapper.writeValueAsString(user);
        System.out.println("userString:"+userString);
        resp.getWriter().write("ok");
    }*/
}
